package cn.edu.glut.vo;

import org.apache.commons.lang3.StringUtils;

import com.sargeraswang.util.ExcelUtil.ExcelCell;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @author Caizhfy
 * @version v.0.1
 * @createTime 2017年12月12日下午3:41:36
 * @email Caizhfy@163.com
 * @description excel导入导出传输对象,@ExcelCell，index代表属性所对应excel的列
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentExcelVo {
	
	@ExcelCell(index = 0)
	private String username;
	@ExcelCell(index = 1)
	private String password;
	@ExcelCell(index = 2)
	private String nickname;
	@ExcelCell(index = 3)
	private String sclass;
	@ExcelCell(index = 4)
	private String contact;
	@ExcelCell(index = 5)
	private String majorName;	//专业
	
	public boolean isFullData(){
		if(StringUtils.isEmpty(username) || StringUtils.isEmpty(password) || StringUtils.isEmpty(nickname) || StringUtils.isEmpty(sclass) || StringUtils.isEmpty(majorName))
			return false;
		return true;
	}
}	
